<%--
  Created by IntelliJ IDEA.
  User: l
  Date: 2023/6/22
  Time: 16:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page isELIgnored="false" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script src="../admin/js/function.js"></script>
<script src="js/jquery.js"></script>
<%@include file="menu.jsp"%>
<style>
    .error{
        display:  inline-block;
        color: red;
        font-size: 15px;
        margin-left: 10px;
    }
</style>

<!--/sidebar-->
<div class="main-wrap">
    <div class="crumb-wrap">
        <div class="crumb-list"><i class="icon-font"></i><a href="/admin/admin_index">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="#">商品管理</a><span class="crumb-step">&gt;</span><span>修改信息</span></div>
    </div>
    <div class="result-wrap">
        <div class="result-content">
            <form action="/admin/admin_updateProduct" method="post" onsubmit="return checkForm(this)" id="myform" name="myform" enctype="multipart/form-data">
                <input type="hidden" name="id" value="${p.id}">
                <input type="hidden" name="cp" value="${cp}">
                <input type="hidden" name="file" value="${p.photo}">
                <table class="insert-tab" width="100%">
                    <tbody><tr>
                        <th width="120"><i class="require-red">*</i>商品名称：</th>
                        <td>
                            <input class="common-text required" id="name" name="name" size="50" value="${p.name}" type="text">
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require-red">*</i>商品价格：</th>
                        <td>
                            <input class="common-text required" id="price" name="price" size="50" value="${p.price}" type="text">
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require-red">*</i>区：</th>
                        <td>
                            <input class="common-text required" id="game" name="game" size="50" value="${p.game}" type="text">
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require-red">*</i>上架时间：</th>
                        <td>
                            <input class="common-text required" onfocus="FocusItem(this)" onblur="CheckItem(this)" name="time" size="50" value="${p.createTime}" placeholder="格式：2020-5-11 12:30:15" type="text">
                            <span></span>
                        </td>
                    </tr>
                    <tr>
                        <th>商品图片:</th>
                        <td>
                            <input name="photo" id="photo" type="file">
                            <img src="../upload/${p.photo}" width="43" height="43">
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                            <input class="btn btn6" onClick="history.go(-1)" value="返回" type="button">
                        </td>
                    </tr>
                    </tbody></table>
            </form>
        </div>
    </div>

</div>
<!--/main-->
</div>
</body>
</html>
